package com.yxw.yx_hotel.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "UserAccountUpdateDTO", description = "修改客户子账号dto")
public class UserAccountUpdateDTO implements Serializable {

    @ApiModelProperty(value = "当前登录人userId = 主账户人id", required = true)
    @NotNull(message = "当前登录人userId不能为空！")
    private Long loginUserId;

    @ApiModelProperty(value = "需要修改的子账户userId", required = true)
    @NotNull(message = "需要修改的子账户userId不能为空！")
    private Long userId;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "岗位id")
    private Long postId;

    @ApiModelProperty(value = "角色id")
    private Long roleId;

    @ApiModelProperty(value = "手机号")
    private String mobilePhone;

    @ApiModelProperty(value = "登录账号")
    private String userNum;

    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "用户状态(0启用 1禁用)")
    private Integer userStatus;

    @ApiModelProperty(value = "账号名称")
    private String userName;

    @ApiModelProperty(value = "账户类型", required = true)
    private Integer userType;

}
